package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsInvApLine;
import com.yudean.esb.mapper.erp.ErpIdsInvApLineMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsInvApLineDao {

    @Resource
    public ErpIdsInvApLineMapper erpIdsInvApLineMapper;

    public int insertSelective(ErpIdsInvApLine record) {
        return erpIdsInvApLineMapper.insertSelective(record);
    }

    public int batchInsertErpIdsInvApLineData(List<ErpIdsInvApLine> erpIdsInvApLineList) {
        return erpIdsInvApLineMapper.batchInsertErpIdsInvApLineData(erpIdsInvApLineList);
    }

    public int deleteInvApLineByControlId(long controlId) {
        return erpIdsInvApLineMapper.deleteInvApLineByControlId(controlId);
    }
}
